package com.example.mapper;

import com.example.entity.dto.GetCoptcListDto;
import com.example.entity.dto.SaleOrder.BatchUpdateCoptcListDto;
import com.example.entity.vo.Business.BatchUpdateCoptcListVo;
import com.example.entity.vo.Business.CoptcListVo;
import com.example.entity.vo.Business.CoptcPlus;
import com.example.entity.yifei.Coptc;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LiangPandeng
 * @since 2024-02-28
 */
public interface CoptcMapper extends BaseMapper<Coptc> {

    String selectTc002(String tc001);

    Page<CoptcListVo> selectPageMe(GetCoptcListDto getCoptcListDto);

    CoptcPlus getCoptcPlus(@Param("db") String db, @Param("dh") String dh);

    CoptcPlus copteCoptcPlus(@Param("db") String db, @Param("dh") String dh, @Param("TC004") String TC004, @Param("TC005") String TC005, @Param("TC006") String TC006,
                             @Param("TC042") String TC042, @Param("TC077") String TC077);

    List<CoptcPlus> test();

    Coptc getLatestCoptcByCustomId(@Param("customId") String customId);

    List<BatchUpdateCoptcListVo> batchUpdateCoptcList(BatchUpdateCoptcListDto dto);

    Map<String,Object> queryTc001AndTc002(@Param("tc001")String tc001, @Param("tc002")String tc002);
}
